package com.hongfeng.web.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hongfeng.web.model.common.BaseEntity;

/**
 * 
 * <联系方式>
 * 
 * @author llc
 * @date 创建时间：2012-12-5 下午04:37:56
 */
@Entity
@Table(name = "contact")
public class Contact extends BaseEntity {

	private static final long serialVersionUID = -6847817228810595637L;

	@Id
	@GeneratedValue
	private Long id;
	// 联系电话
	@Column(name = "telephone", length = 50, nullable = false)
	private String telephone;
	// 传真
	@Column(name = "fax", length = 50)
	private String fax;
	// 手机号码
	@Column(name = "phone_number", length = 50, nullable = false)
	private String phoneNumber;
	// 联系人姓名
	@Column(name = "name", length = 20, nullable = false)
	private String name;
	// 联系地址
	@Column(name = "address", length = 200, nullable = false)
	private String address;
	// 邮编
	@Column(name = "postal_code", nullable = false)
	private Integer postalCode;
	// QQ号码（多个QQ号以;分开）
	@Column(name = "online_qq", length = 100, nullable = false)
	private String onlineQq;
	// 排序值
	@Column(name = "pos")
	private Integer pos;
	// 备注
	@Column(name = "memo", length = 200)
	private String memo;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(Integer postalCode) {
		this.postalCode = postalCode;
	}

	public String getOnlineQq() {
		return onlineQq;
	}

	public void setOnlineQq(String onlineQq) {
		this.onlineQq = onlineQq;
	}

	public Integer getPos() {
		return pos;
	}

	public void setPos(Integer pos) {
		this.pos = pos;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
